package com.example.demo3;

public interface LightSwitch {

    /**
     * 切换为红灯
     */
    void switchToRed(TrafficLight trafficLight);

    /**
     * 切换为绿灯
     * @param trafficLight
     */
    void switchToGreen(TrafficLight trafficLight);


    /**
     * 切换为黄灯
     * @param trafficLight
     */
    void switchYellow(TrafficLight trafficLight);
}
